package dgut.party.business.dao.user;

import dgut.party.business.entity.user.UserTitle;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserTitleRepository extends JpaRepository<UserTitle, Long> {

  List<UserTitle> findByName(String name);

  Page<UserTitle> findByName(String name, Pageable pageable);
}
